home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / tools / czesc_2 / jm / rexxexamples / queries.rexx next >
OS/2 REXX Batch file  |  1992-03-12  |  1KB  |  45 lines

  1. /*c:rx
  2.  
  3.  *****************************************************************************
  4.  *                                                                           *
  5.  * Example program to query information from JM server's ARexx port          *
  6.  *                                                                           *
  7.  *****************************************************************************/
  8.  
  9.  
  10. options results     /* we want to hear about results     */
  11. address jmserver    /* connect to JM server's ARexx port */
  12.  
  13. num_start
  14. say result "Processes have been started"
  15.  
  16. num_finish
  17. say result "Processes have finished"
  18.  
  19. idle_cpu
  20. say "Approx. idle CPU % is" result/100
  21.  
  22. quantum
  23. say "JM time quantum is" result " 10ths of a sec"
  24.  
  25. logfile
  26. say "The JM logfile is" '"'||result||'"'
  27.  
  28. logswitch
  29. say "The JM logfile is turned" result
  30.  
  31. install_delay
  32. say "The task install delay is:" result " 10ths of a sec"
  33.  
  34. manageswitch
  35. say "JM task management is" result
  36.  
  37. managed_num
  38. say "There are" result "managed tasks"
  39.  
  40. watchswitch
  41. say "JM task watch is" result
  42.  
  43. sysload
  44. say "The approx. CPU load is:" result/100
  45.